package user;

import book.Book;
import book.BookList;
import operation.IOperation;

/**
 * Created with IntelliJ IDEA.
 * User: 12629
 * Date: 2022/2/28
 * Time: 19:04
 * Description:
 */
public abstract class User {
    protected String name;

    protected IOperation[] iOperations;

    public User(String name) {
        this.name = name;
    }

    public abstract int menu();

    public void doOperation(int choice, BookList bookList) {
        this.iOperations[choice].work(bookList);
    }
}
